<template>
  <div class="shujixq">
    <div class="booktop">
      <div class="top">
        <div class="top1">
          <div class="imgs" @click="toshuj()">
            <img src="../../assets/images/logon.png" alt="" />
          </div>
          <div class="lefts">
            <div></div>
            <div class="lefts1">浙江省非物质文化<br />数字文献中心</div>
            <div class="lefts2">
              ZhejiangProvinceIntangibleCultureDigitalLiteratureCenter
            </div>
          </div>
          <div class="rights">
            <div></div>
            <usertbtn></usertbtn>
            <div class="ris3">
              <el-form
                :inline="true"
                :model="formInline"
                class="demo-form-inline"
                style="width: 100%; display: flex; height: 56px"
              >
                <el-form-item
                  style="width: 382px; height: 56px; margin-bottom: 0"
                >
                  <el-input
                    v-model="formInline.user"
                    placeholder="输入关键词搜索"
                    style="width: 382px; height: 56px"
                  >
                    <img
                      slot="append"
                      src="../../assets/images/sousuo.png"
                      alt=""
                    />
                  </el-input>
                  <!-- <el-input placeholder="输入关键词搜索" v-model="formInline.user" class="input-with-select">
                        <el-button slot="append" icon="el-icon-search" @click="sousuos()"></el-button>
                        </el-input> -->
                </el-form-item>
                <el-form-item>
                  <div
                    style="padding-left: 20px; margin-top: 7px; cursor: pointer"
                    @click="onSubmit()"
                  >
                    <div
                      style="
                        display: flex;
                        align-items: center;
                        height: 100%;
                        font-size: 18px;
                        font-family: Source Han Sans CN-Regular,
                          Source Han Sans CN;
                        font-weight: 400;
                        color: #911f23;
                      "
                    >
                      高级检索
                      <i
                        style="font-size: 18px; font-weight: 550"
                        class="el-icon-arrow-right"
                      ></i>
                    </div>
                  </div>
                </el-form-item>
              </el-form>
            </div>
          </div>
        </div>
      </div>
    </div>

    <div class="booktop1">
      <div class="tx">浙江省非物质文化遗产普查项目调查表</div>
      <div class="tx1">[{{ pcxqlist.dcxmxmmlname }}]</div>
      <div class="tx2">
        <div class="tx21">
          <div class="tx21-1"><span>种类:</span>{{pcxqlist.dcxmxmmlname}}</div>
          <div class="tx21-1"><span>编号:</span>{{pcxqlist.dcxmxmbm}}</div>
        </div>
        <div class="tx22">
          <table align="center">
           
            <tr>
              <td colspan="2">项目名称</td>
              <td colspan="7">{{pcxqlist.dcxmxmmc}}</td>
              
              <!-- <td>照片</td> -->
            </tr>
            <tr>
              <td rowspan="5">籍贯</td>
              <td>姓名</td>
              <td>{{pcxqlist.dcxmname}}</td>
              <td>性别</td>

              <td>{{pcxqlist.dcxmsexname}}</td>
              <td>出生年月</td>
              <td>{{pcxqlist.dcxmcsny}}</td>
              <td>民族</td>
              <td>{{pcxqlist.dcxmmz}}</td>
            </tr>
            <tr>
              
              <td>文化程度</td>
              <td>{{pcxqlist.dcxmwhcdname}}</td>
              <td>从业时间</td>

              <td>{{pcxqlist.dcxmdcsj | dataFormat}}</td>
              <td>健康情况</td>
              <td>{{pcxqlist.dcxmjkzk}}</td>
              <td></td>
              <td></td>
            </tr>
            <tr>
              
              <td>详细住址</td>
              <td colspan="3">{{pcxqlist.dcxmxxzz}}</td>
              
              <td>电话</td>
              <td colspan="3">{{pcxqlist.dcxmdcrdh}}</td>
            </tr>
            <tr>
              
              <td rowspan="2">主要技术成绩</td>
              <td colspan="7" rowspan="2">{{pcxqlist.dcxmccryscj}}</td>
              
            </tr>
            <tr></tr>
            <tr >
              <td>历史沿革</td>
              <td colspan="8">{{pcxqlist.dcxmnr1}}</td>
            </tr>

            <tr >
              <td>相关材料、工具</td>
              <td colspan="8">{{pcxqlist.dcxmnr2}}</td>
            </tr>
            <tr></tr>
            <tr></tr>
            <tr >
              <td>产品用途</td>
              <td colspan="8">{{pcxqlist.dcxmnr3}}</td>
              <!-- <td></td> -->
                        
            </tr>
            <tr >
              <td>行为、习惯</td>
              <td colspan="8">{{pcxqlist.dcxmnr4}}</td>
              <!-- <td></td> -->
                       
            </tr>
            <tr >
              <td>传承状况</td>
              <td colspan="8">{{pcxqlist.dcxmnr5}}</td>
              <!-- <td></td> -->
                       
            </tr>
            <tr >
              <td>相关活动描述</td>
              <td colspan="8">{{pcxqlist.dcxmnr6}}</td>
              <!-- <td></td> -->
                       
            </tr>
            <tr >
              <td>相关资料</td>
              <td colspan="8">{{pcxqlist.dcxmzlbz}}</td>
              <!-- <td></td> -->
                       
            </tr>
            <tr >
              
              <td></td>
              <td>记录稿(页)</td>
              <td>{{pcxqlist.dcxmzljlg}}</td>

              <td>录音带或录音光碟(/张)</td>
              <td>{{pcxqlist.dcxmzllyd}}</td>
              <td>录像带或录像光碟(/张)</td>
              <td>{{pcxqlist.dcxmzllxd}}</td>
              <td>照片(张)</td>
              <td>{{pcxqlist.dcxmzlzp}}</td>
            </tr>
            <tr >
              <td rowspan="3">调查人</td>
              <td>姓名</td>
              <td colspan="3">{{pcxqlist.dcxmdcrxm}}</td>
              
              <td>文化程度</td>
              <td colspan="3">{{pcxqlist.dcxmdcrwhcd}}</td>
              
            </tr>
            <tr >
              <td>详细地追或工作单位</td>
              <td colspan="3">{{pcxqlist.dcxmdcrxxzz}}</td>
              
              <td>电话</td>
              <td colspan="3">{{pcxqlist.dcxmdcrdh}}</td>
            </tr>
            <tr >
              <td>调查时间</td>
              <td colspan="3">{{pcxqlist.dcxmdcsj | dataFormat}}</td>
              
              <td>调查地点</td>
              <td colspan="3">{{pcxqlist.dcxmdcdd}}</td>
            </tr>
          </table>
        </div>
      </div>
    </div>
    <div style="width: 100%; height: 100px; background-color: #fff"></div>
    <footbtn class="foot"></footbtn>
  </div>
</template>
<style>
table {
  border-collapse: collapse;
  width: 80%;
  margin: 30px auto 0;
  /* margin-top: 30px; */
  /* width: 590px; */
}
td {
  width: 100px;
  height: 40px;
  border: 1px solid black;
  text-align: center;
  padding: 10px 8px;
}
.pic {
  height: 180px;
}
</style>
<style scoped  lang="scss">
::v-deep .el-input {
  display: flex;
  justify-content: center;
  color: #333333;
}
::v-deep .el-input--prefix .el-input__inner {
  width: 305px;
  border: 0px;
}
//搜索框
::v-deep .el-input-group > .el-input__inner {
  height: 56px;
  border: 0px;
}
::v-deep .el-input-group__append {
  border: none !important;
  background-color: #fff;
  padding: 0 45px 0 10px;
}
::v-deep .el-input-group__append img {
  width: 32px;
  height: 32px;
  padding-top: 12px;
  cursor: pointer;
}
::v-deep .el-button--primary {
  background-color: #911f23;
  border-color: #911f23;
  border-radius: 8px;
  height: 56px;
  width: 112px;
  margin-left: 16px;
}
::v-deep .el-form--inline .el-form-item {
  margin-right: 0;
}

.shujixq {
  width: 100%;
  background-color: #f7f7f8;
  .booktop {
    width: 100%;
    height: 200px;
    background: url("../../assets/images/booktop.png") no-repeat;
    background-size: 100% 100%;
    .top {
      width: 1400px;
      height: 176px;
      margin: 0 auto;
      // background-color: #F7F7F8;
      .top1 {
        position: relative;
        width: calc(100% - 0px);
        margin: 0 auto;
        height: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        // background-color: pink;
        .imgs {
          position: absolute;
          top: 0;
          width: 138px;
          height: 176px;
          z-index: 100;
          img {
            width: 100%;
            height: 100%;
          }
        }
        .lefts {
          display: flex;
          flex-direction: column;
          justify-content: space-between;
          height: 100%;
          margin-left: 170px;
          .lefts1 {
            font-size: 24px;
            font-family: Source Han Sans CN-Regular, Source Han Sans CN;
            font-weight: 400;
            color: #333333;
            // line-height: 35px;
          }
          .lefts2 {
            font-size: 14px;
            font-family: Source Han Sans CN-Regular, Source Han Sans CN;
            font-weight: 400;
            color: #666666;
          }
        }
        .rights {
          position: relative;
          display: flex;
          flex-direction: column;
          align-items: flex-end;
          justify-content: space-between;
          // padding-bottom: 40px;
          height: 100%;

          .ris3 {
            // width: 362px;
            // margin-top: 37px;
          }
          .ri {
            padding-right: 30px;
          }
          .ri1 {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 68px;
            height: 38px;
            background: #911f23;
            border-radius: 8px 8px 8px 8px;
            opacity: 1;
            color: #fff;
            cursor: pointer;
          }
        }
      }
    }
  }
  .booktop1 {
    width: 1400px;
    margin: 0 auto;
    background-color: #fff;
    padding: 32px 0;
    .tx {
      text-align: center;
      font-size: 20px;
      font-weight: 550;
      color: #333333;
    }
    .tx1 {
      text-align: center;
      font-size: 14px;
      font-weight: 400;
      color: #666;
      padding-top: 10px;
    }
    .tx2 {
      width: 80%;
      margin: 0 auto;
      padding-top: 30px;
      .tx21 {
        width: 100%;
        display: flex;
        justify-content: space-around;
        .tx21-1 {
          font-size: 14px;
          color: #666;
          span {
            color: #333333;
            padding-right: 4px;
          }
        }
      }
      .tx22 {
        width: 100%;
      }
    }
  }
}
.foot {
  position: fixed;
  bottom: 0;
  left: 0;
}
</style>

<script>
import { getBookXq, getszda } from "@/api/api.js";
import usertbtn from "../../components/user/index.vue";
import footbtn from "../../components/foot/index.vue";
export default {
  data() {
    return {
      shujixq: {},

      formLogin: {
        name: "",
        // padd: "",
      },
      formInline: {
        user: "",
      },
      mc: "",
      id: 0,
      lx: 0,
      pcxqlist: {},
      fujianLists: [],
    };
  },
  created() {
    this.id = this.$route.query.id;
    this.lx = this.$route.query.lx;
    this.mc = sessionStorage.getItem("sousuo");

    this.bookxq();
  },
  mounted() {
    // this.creatQrCode();
  },
  methods: {
    xzfj(url) {
      window.open(url, "_blank");
    },
    toshuj() {
      this.$router.go(-1)
      sessionStorage.setItem("erjsnav", 1);
      sessionStorage.setItem("sousuo", this.mc);
      this.$router.push({
        path: "/s2",
        query: {},
      });
    },
    
    async bookxq() {
      let res = await getszda({
        id: this.lx * 1,
        type: this.id * 1,
      });
      
      this.pcxqlist = res;
      this.fujianLists = res.fujianList ? res.fujianList : [];
    },
    sousuos() {
      if (this.formInline.user == "") {
        this.$message.error({ message: "请输入搜索内容!", center: true });
      }
    },
    onSubmit() {
      // sessionStorage.setItem("erjsnav", 1);
      sessionStorage.setItem("erjsnav", 0);
      this.$router.push({
        path: "/retrieval",
        query: {},
      });
    },
  },
  computed: {},
  components: {
    footbtn,
    usertbtn,
  },
};
</script>
